<%-- 
    Document   : logout
    Created on : Mar 4, 2013, 10:14:59 AM
    Author     : faizal.azlee
--%>

<%@page contentType="text/html" pageEncoding="windows-1252"%>
<%@taglib uri="http://displaytag.sf.net" prefix="display" %>

<%@ include file="/WEB-INF/jsp/include/page_header.jspf" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        <title>JSP Page</title>
        <script type="text/javascript">
            $(document).ready(function(){ 
                $('form').submit( function () {
                    return formValidation();
                }); 
            });
             function popup(){
                var url = '${pageContext.request.contextPath}/logout?logoutReport';
                window.open(url);
            }
        </script>
    </head>
    <body>
        <s:form beanclass="th.stripes.LogoutActionBean"> 
            <div id="content">
        <div id="logo">
                    <span>
                        <img src="${pageContext.request.contextPath}/images/img/ribbon.png"/>               
                    </span>
                </div>
        <h3>
            Ringkasan Transaksi
        </h3>
        <p>
            <div style='overflow-x:auto;overflow-y:auto;width:100%'> 
                <display:table name="${listSt}" class="tablecloth" id="row" style="width:100%">
                    <display:column title="Bil">${row_rowNum}</display:column>
                    <display:column property="nilaiDalaman1" title="ID Transaksi"/>                    
                    <display:column property="urusan.nama" title="Transaksi"/>                    
                    <display:column title="Tarikh Transaksi">                            
                        <fmt:formatDate value="${row.trhMasuk}" pattern="dd/MM/yyyy"/>
                    </display:column>
                    <display:column title="Masa Transaksi">                            
                        <fmt:formatDate value="${row.trhMasuk}" pattern="HH:mm:ss"/>
                    </display:column>
                    
                    <display:column title="Status">
                    <c:if test="${row.status.kod != '0000'}"> 
                        TIDAK BERJAYA
                    </c:if>
                    <c:if test="${row.status.kod == '0000'}"> 
                        BERJAYA
                    </c:if>
                    </display:column>
                    <%--<display:column property="dariAkaun" title="Dari akaun"/>--%>
                    <%--<display:column property="kepadaAkaun" title="ke Akaun"/>--%>
                    <%--<display:column title="Amaun(RM)" style="width:110px;text-align:right;"><fmt:formatNumber value="${row.amaun}" pattern="#,##0.00"/></display:column>--%>
                    <%--<display:column property="status.nama" title="Status"/>--%>
                </display:table>
            </div>
        </p>
        <p align="center">            
            <s:button name="cetak" value="Cetak" onclick="popup()" class="button green"/>
        </p>
        </div>
        </s:form>
    </body>
</html>
